package tests

import org.scalatest._
import tp1._

class AbandonadaTest extends FlatSpec{

  var cursada = new Abandonada()
  val orga = new Materia("Orga")
  cursada.initialize(0, orga,new Curso(new Docente("profe")))
  
  "una cursada abandonada" should "deberia esta bien seteada" in {
   
    assert(cursada.calificacion == 0)
    assert(cursada.materia == orga)
  }
  
  "una cursada abandonada" should "devolver false ante el llamado de aprobo()" in {
   
    assert(cursada.aprobo() == false)
    
  }
  
  "una cursada abandonada" should "devolver false ante el llamado de termino()" in {
   
    assert(cursada.termino() == false)
    
  }
}